]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
style: Saner padding and margins in notification headers
authorSam Hewitt <snwh@gnome.org>
Tue, 24 Sep 2024 15:31:27 +0000 (13:01 -0230)
committerMarge Bot <marge-bot@gnome.org>
Wed, 16 Oct 2024 16:52:41 +0000 (16:52 +0000)
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7920
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3486>

data/theme/gnome-shell-sass/widgets/_message-list.scss

index 60cb5bde7307d1b2f538ab8f3394be3d18b92ef4..26cfb45379db4fdaee14213f680abee474d47579 100644 (file)
@@ -74,9 +74,9 @@
     color: $insensitive_fg_color;
     padding:0 $base_padding;
 
-    // side padding to accommodate the close button
-    &:ltr { padding-right:$base_padding - 2px; };
-    &:rtl { padding-left:$base_padding - 2px; };
+    // remove side padding to accommodate the close button
+    &:ltr { padding-right: 0; }
+    &:rtl { padding-left: 0; }
 
     // header source icon
     .message-source-icon {
         // Add bottom padding to align the app name with the time horizontally
         padding-bottom: to_em(1px);
 
-        &:ltr { text-align: right };
-        &:rtl { text-align: left };
+        &:ltr { text-align: right; }
+        &:rtl { text-align: left; }
       }
     }
 
       @extend %notification_button;
       border-radius: $forced_circular_radius; // make circular
       color: $fg_color;
-      padding: 4px;
     }
 
+    // increase padding to expand button to make it larger
     .message-expand-button {
       padding: $base_padding;
-      &:ltr { margin-right: $base_padding; }
-      &:rtl { margin-left: $base_padding; }
+    }
+
+    // add margin to close button to balance it with the expand button
+    .message-close-button {
+      margin: $base_padding * 0.5;
+      padding: 4px;
     }
   }